import { View, Button } from '@tarojs/components'
import { AtModal, AtModalHeader, AtModalContent, AtModalAction } from "taro-ui"
import './index.scss'

export default function App(props) {

    const { isOpened, handleCancel, handleConfirm } = props
    
    return (
        <View>
            <AtModal isOpened={isOpened}>
                <AtModalHeader>是否确认清除所有信息</AtModalHeader>
                <AtModalAction>
                    <Button onClick={handleCancel} className='btn'>取消</Button>
                    <Button onClick={handleConfirm} className='btn'>确定</Button>
                </AtModalAction>
            </AtModal>
        </View>
    )
}
